<?php
namespace Crm\Api;

use PhalApi\Api;
use Crm\Domain\Mall as DomainMall;

/**
 * Service服务类
 *
 * @author: luodong <751450467@qq.com> 2020-06-24
 */

class Service extends Api {

	public function getRules() {
        return array(
            'wechat' => array('mall_id' => array('name' => 'mall_id', 'type'=>'int','require'=>true,'desc'=>'默认商城ID')),
        );
	}

    /**
     * 商城页配置
     */
    public function wechat(){
        $domain = new DomainMall();
        $data = $domain->setting($this->mall_id,2020405);
        return $data;
    }

}
